﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GtsServer.Service.TaskStartEndService
{
    public class Service : IService
    {
        public void Edit(Model.Task model)
        {
            TaskController controller = TaskController.GetInstance();
            controller.EditTask(model);
        }

        public void Delete(int id)
        {
            TaskController controller = TaskController.GetInstance();
            controller.Delete(id);
        }

        public void EditLotteryPool(int time, int num)
        {
            LotteryPoolController controller = LotteryPoolController.GetInstance();
            controller.Edit(time, num);
        }

        public void EditTaskRobotScore(Model.TaskRobotSetting model)
        {
            TaskController controller = TaskController.GetInstance();
            controller.EditTaskRobotScore(model);
        }
    }
}
